package com.hkts.naturalgas.base.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hkts.naturalgas.config.JsonSerializerUtils;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2021-05-31
 */
public class Ozone extends Model<Ozone> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 时间
     */
    private LocalDateTime time;
    /**
     * 1#臭氧流量
     */
    @JsonSerialize(using = JsonSerializerUtils.class)
    private Float bsjhCy1;
    /**
     * 1#臭氧浓度
     */
    @JsonSerialize(using = JsonSerializerUtils.class)
    private Float bsjhCy1c;
    /**
     * 2#臭氧流量
     */
    @JsonSerialize(using = JsonSerializerUtils.class)
    private Float bsjhCy2f;
    /**
     * 2#臭氧浓度
     */
    @JsonSerialize(using = JsonSerializerUtils.class)
    private Float bsjhCy2c;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public Float getBsjhCy1() {
        return bsjhCy1;
    }

    public void setBsjhCy1(Float bsjhCy1) {
        this.bsjhCy1 = bsjhCy1;
    }

    public Float getBsjhCy1c() {
        return bsjhCy1c;
    }

    public void setBsjhCy1c(Float bsjhCy1c) {
        this.bsjhCy1c = bsjhCy1c;
    }

    public Float getBsjhCy2f() {
        return bsjhCy2f;
    }

    public void setBsjhCy2f(Float bsjhCy2f) {
        this.bsjhCy2f = bsjhCy2f;
    }

    public Float getBsjhCy2c() {
        return bsjhCy2c;
    }

    public void setBsjhCy2c(Float bsjhCy2c) {
        this.bsjhCy2c = bsjhCy2c;
    }

    public static final String ID = "id";

    public static final String TIME = "time";

    public static final String BSJH_CY1 = "bsjh_cy1";

    public static final String BSJH_CY1C = "bsjh_cy1c";

    public static final String BSJH_CY2F = "bsjh_cy2f";

    public static final String BSJH_CY2C = "bsjh_cy2c";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Ozone{" +
                ", id=" + id +
                ", time=" + time +
                ", bsjhCy1=" + bsjhCy1 +
                ", bsjhCy1c=" + bsjhCy1c +
                ", bsjhCy2f=" + bsjhCy2f +
                ", bsjhCy2c=" + bsjhCy2c +
                "}";
    }
}
